package org.csu.demo.domain;

import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;


@Data
public class OrderDTO {
    private int orderId;
    private Date orderDate;
    private BigDecimal totalPrice;

    public OrderDTO(Orders order) {
        this.orderId = order.getOrderId();
        this.orderDate = order.getOrderDate();
        this.totalPrice = order.getTotalPrice();
    }
}
